package com.imooc.bilibili.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * webSocket配置
 *
 * @author gcq
 * @Create 2022-06-07
 */
@Configuration
public class WebSocketConfig {

    /**
     * 用来发现 WebSocket 端口
     * @return
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}